package com.example.user3.demo.contract;


import android.content.Context;
import android.view.View;

import com.example.user3.demo.bean.ChapterListBean;
import com.zzy.base.mvp.IBasePresenter;
import com.zzy.base.mvp.IBaseView;

import retrofit2.Call;
import retrofit2.Callback;

//契约接口，可以很直观的看到 M、V、P 层接口中提供的方法
public interface MainContract {

    interface IModel{
         void getChapterList(Callback<ChapterListBean> callback);//获取数据用
    }

    interface IView extends IBaseView{
        Context getContext();
        void showLoading();
        void hideLoading();
        void success(String content);

    }

    interface IPresenter extends IBasePresenter {
        void handleData();
    }

}
